package com.cskaoyan.mapper;

import com.cskaoyan.bean.user.Collect;
import com.cskaoyan.bean.user.CollectExample;
import com.cskaoyan.bean.wxcollect.CollectInfo;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Field;
import java.util.List;

public interface CollectMapper {
    long countByExample(CollectExample example);

    int deleteByExample(CollectExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Collect record);

    int insertSelective(Collect record);

    List<Collect> selectByExample(CollectExample example);

    Collect selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByExample(@Param("record") Collect record, @Param("example") CollectExample example);

    int updateByPrimaryKeySelective(Collect record);

    int updateByPrimaryKey(Collect record);

    List<CollectInfo> getCollectInfo();

    int addCollect(Integer type, Integer valueId, String addTime);


    List<Integer> selectValueIdByDeleted();

    int updateDeleted(Integer valueId,String updateTime);

    int selectByUserAndGoods(Integer userId, Integer goodsId);
}